package com.sicent.operate.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("jumppage")
public class JumpPageController {

	@RequestMapping("/index")
	public String welcome(HttpServletRequest request){
		return "index/index";
	}
	
	@RequestMapping("/userManager")
	public String userManager(){
		return "user/list";
	}
	
	@RequestMapping("/login-null")
	public String loginNull(HttpServletRequest request,Model model){
		return "user/login-null";
	}
	
	@RequestMapping("/login")
	public String login(HttpServletRequest request,Model model){
		model.addAttribute("msg", "用户名密码为空");
		return "user/login";
	}
	
	@RequestMapping("/resource")
	public String resource(){
		return "user/resource";
	}
	
	@RequestMapping("/role")
	public String role(){
		return "user/role";
	}
	
}
